package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

/**
 * @author ${xinpl}
 * @Description 权限业务接口
 */
public interface PermissionService {

    PageResult findPage(QueryPageBean pageBean)throws Exception;

    void add(Permission permission)throws Exception;

    void delete(int id)throws Exception;

    Permission findById(int id)throws Exception;

    void update(Permission permission)throws Exception;

    Boolean checkPermissionExist(String name)throws Exception;
}
